package com.sixth.statistics.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.sixth.core.entity.User;
import com.sixth.core.vo.R;
import com.sixth.statistics.mapper.UserMapper;
import com.sixth.statistics.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: six-hospital-system
 * @description:
 * @author: 朱永奇
 * @create: 2024-08-20 15:37
 **/
@Service
public class UserImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    /**
     * 评价查找名字
     * @return
     */
    @Override
    public R<List<User>> selectAll() {
        QueryWrapper<User> wrapper = new QueryWrapper<>();
        wrapper.eq("status",0);
        wrapper.eq("del_flag",0);
        List<User> users = userMapper.selectList(wrapper);
        return R.ok(users);
    }
}
